package com.cauli.search.feignService;

import com.cauli.search.feignService.Interceptor.FeignInterceptor;
import com.cauli.utils.util.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Cauli
 * @date 2023/8/31 2:55
 * @description 在调用接口里使用 Interceptor
 */
@FeignClient(name = "netdisk-file", configuration = FeignInterceptor.class)
public interface FileFeignService {
    @RequestMapping("/file/getUserFile/{userFileId}")
    ResultResponse<Boolean> getUserFile(@PathVariable Long userFileId);
}

